-- GENERATED SPELL FOR [Feralfen Mystic] --


function spell0_18114(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18114', 3000, 1)
end

function spell1_18114(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18114', 0, 1)
end

function Sorts_18114(pUnit, Event)
local choix_sorts_18114 = math.random(0, 1)
if choix_sorts_18114 == 0 then
pUnit:RegisterEvent('spell0_18114', 1, 1)
end
if choix_sorts_18114 == 1 then
pUnit:RegisterEvent('spell1_18114', 1, 1)
end
end

function mob18114_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18114', math.random(1500, 3000), 1)
end

function mob18114_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18114_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18114_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18114, 1, 'mob18114_Action')
RegisterUnitEvent(18114, 2, 'mob18114_Leave')
RegisterUnitEvent(18114, 3, 'mob18114_Kill')
RegisterUnitEvent(18114, 4, 'mob18114_Die')
